package net.apexcns.core.config;

@SuppressWarnings("serial")
public abstract class ConfigSupport implements Config {
	public abstract String getConfigPath();

	public void afterBind() {
	}

	public boolean afterBindDefault() {
		return false;
	}
	
	public static <T extends Config> T getConfig(Class<T> clazz) {
		return ConfigFactory.getConfig(clazz);
	}

	public static String getConfigBase() {
		return System.getProperty("apex.configBase", System.getProperty("user.dir"));
	}


}

